@layout("/backend/common/_container.html"){
<div class="dhcc-form" id="resourceInfoForm">
    <#Hidden id="id"/>
    <#Input id="name" name="名称" />
    <#Input id="perms" name="资源权限" />
    <#Input id="parentName" name="父级编号"
    hidden="parentId" readonly="readonly"
    clickFun="ResourceInfoDlg.showResourceSelectTree(); return false;"
    style="background-color: #ffffff !important;"
    selectFlag="true" selectId="pTreeDiv" selectTreeId="pTree" selectStyle="width:244px !important;"/>
    <#Select id="resType" name="资源类型" onSelect="ResourceInfoDlg.selectResType">
    <option value="1">目录</option>
    <option value="2">菜单</option>
    <option value="3">权限</option>
</#Select>
<div id="url_collapse" class="collapse">
    <#Input id="url" name="请求地址" />
</div>
<div id="icon_collapse" class="collapse">
    <#Iconselect id="icon" name="图标" />
</div>
<#Input id="weight" name="排序" type="number" />

<div class="toolbar">
    <#Button name="保存" id="ensure" icon="icon-w-save" clickFun="ResourceInfoDlg.addSubmit()"/>
    <#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close" clickFun="ResourceInfoDlg.close()"/>
</div>
</div>
<script src="${ctxPath}/static/backend/system/resource/backend/resource_info.js"></script>
@}
